#ifndef CAN_FRAME_H
#define CAN_FRAME_H

#include "FrameBase.h"



class CAN_Frame:public CAN_FrameBase{
public:

    FrameType Type;
    FrameSize Size;
    CanFrame frame;
    void frameConfig(FrameType type,FrameSize size,canU32_t id);
    bool frameChanged;
    void makeDataFrame(canU8_t* data,canU8_t len);
    void makeRemoteFrame(canU8_t lenNeed);
    void makeErrorFrame();
    void makeOverloadFrame();
    void makeBetweenFrame();

    canU16_t CRC15();
};



#endif // CAN_FRAME_H
